home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / What's New? / Development Kits / ColorSync™ 2.0.1 GM / Interfaces / PInterfaces / CMPRComponent.p < prev   
Encoding:
Text File  |  1995-12-12  |  3.0 KB  |  130 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMPRComponent.p
  3.  
  4.      Contains:    ColorSync ProfileResponder Components Interface 
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Release:    2.0f3
  8.  
  9.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, send the file and version
  13.                  information (from above) and the problem description to:
  14.  
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT CMPRComponent;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __CMPRCOMPONENT__}
  30. {$SETC __CMPRCOMPONENT__ := 1}
  31.  
  32. {$I+}
  33. {$SETC CMPRComponentIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$IFC UNDEFINED __QUICKDRAW__}
  43. {$I Quickdraw.p}
  44. {$ENDC}
  45. {    MixedMode.p                                                    }
  46. {    QuickdrawText.p                                                }
  47. {        ScriptLayout.p                                            }
  48.  
  49. {$IFC UNDEFINED __COMPONENTS__}
  50. {$I Components.p}
  51. {$ENDC}
  52.  
  53. {$IFC UNDEFINED __CMAPPLICATION__}
  54. {$I CMApplication.p}
  55. {$ENDC}
  56. {    Files.p                                                        }
  57. {        OSUtils.p                                                }
  58. {            Memory.p                                            }
  59. {        Finder.p                                                }
  60. {    Printing.p                                                    }
  61. {        Errors.p                                                }
  62. {        Dialogs.p                                                }
  63. {            Windows.p                                            }
  64. {                Events.p                                        }
  65. {                Controls.p                                        }
  66. {                    Collections.p                                }
  67. {                    Appearance.p                                }
  68. {                    TextObjects.p                                }
  69. {                        Unicode.p                                }
  70. {                    Menus.p                                        }
  71. {                AppleEvents.p                                    }
  72. {                    EPPC.p                                        }
  73. {                        AppleTalk.p                                }
  74. {                        PPCToolbox.p                            }
  75. {                        Processes.p                                }
  76. {                    Notification.p                                }
  77. {                        Kernel.p                                }
  78. {                            MachineExceptions.p                    }
  79. {                            Timing.p                            }
  80. {                Drag.p                                            }
  81. {                    TextEdit.p                                    }
  82. {    CMICCProfile.p                                                }
  83.  
  84. {$PUSH}
  85. {$ALIGN MAC68K}
  86. {$LibExport+}
  87.  
  88. CONST
  89.     CMPRInterfaceVersion        = 0;
  90.  
  91. { Component function selectors }
  92.     kCMPRGetProfile                = 0;
  93.     kCMPRSetProfile                = 1;
  94.     kCMPRSetProfileDescription    = 2;
  95.     kCMPRGetIndexedProfile        = 3;
  96.     kCMPRDeleteDeviceProfile    = 4;
  97.  
  98.  
  99. FUNCTION CMGetProfile(pr: ComponentInstance; aProfile: CMProfileHandle; VAR returnedProfile: CMProfileHandle): CMError;
  100.     {$IFC NOT GENERATINGCFM}
  101.     INLINE $2F3C, 8, 0, $7000, $A82A;
  102.     {$ENDC}
  103. FUNCTION CMSetProfile(pr: ComponentInstance; newProfile: CMProfileHandle): CMError;
  104.     {$IFC NOT GENERATINGCFM}
  105.     INLINE $2F3C, 4, 1, $7000, $A82A;
  106.     {$ENDC}
  107. FUNCTION CMSetProfileDescription(pr: ComponentInstance; DeviceData: LONGINT; hProfile: CMProfileHandle): CMError;
  108.     {$IFC NOT GENERATINGCFM}
  109.     INLINE $2F3C, 8, 2, $7000, $A82A;
  110.     {$ENDC}
  111. FUNCTION CMGetIndexedProfile(pr: ComponentInstance; search: CMProfileSearchRecordHandle; VAR returnProfile: CMProfileHandle; VAR index: LONGINT): CMError;
  112.     {$IFC NOT GENERATINGCFM}
  113.     INLINE $2F3C, 12, 3, $7000, $A82A;
  114.     {$ENDC}
  115. FUNCTION CMDeleteDeviceProfile(pr: ComponentInstance; deleteMe: CMProfileHandle): CMError;
  116.     {$IFC NOT GENERATINGCFM}
  117.     INLINE $2F3C, 4, 4, $7000, $A82A;
  118.     {$ENDC}
  119.  
  120. {$ALIGN RESET}
  121. {$POP}
  122.  
  123. {$SETC UsingIncludes := CMPRComponentIncludes}
  124.  
  125. {$ENDC} {__CMPRCOMPONENT__}
  126.  
  127. {$IFC NOT UsingIncludes}
  128.  END.
  129. {$ENDC}
  130.